<?php



/**
 * This class defines the structure of the 'view_rejections_report' table.
 *
 *
 *
 * This map class is used by Propel to do runtime db structure discovery.
 * For example, the createSelectSql() method checks the type of a given column used in an
 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
 * (i.e. if it's a text column type).
 *
 * @package    propel.generator.empeval.map
 */
class EmpevalViewRejectionsReportTableMap extends TableMap
{

    /**
     * The (dot-path) name of this class
     */
    const CLASS_NAME = 'empeval.map.EmpevalViewRejectionsReportTableMap';

    /**
     * Initialize the table attributes, columns and validators
     * Relations are not initialized by this method since they are lazy loaded
     *
     * @return void
     * @throws PropelException
     */
    public function initialize()
    {
        // attributes
        $this->setName('view_rejections_report');
        $this->setPhpName('ViewRejectionsReport');
        $this->setClassname('EmpevalViewRejectionsReport');
        $this->setPackage('empeval');
        $this->setUseIdGenerator(true);
        // columns
        $this->addPrimaryKey('BONUS_GOALS_FORM_ID', 'BonusGoalsFormId', 'INTEGER', true, 4, null);
        $this->addColumn('FNAME', 'Fname', 'VARCHAR', false, 30, null);
        $this->addColumn('LNAME', 'Lname', 'VARCHAR', false, 50, null);
        $this->addColumn('DEPARTMENT', 'Department', 'VARCHAR', false, 100, null);
        $this->addColumn('YEAR', 'Year', 'SMALLINT', false, 2, null);
        $this->addColumn('PERIOD', 'Period', 'VARCHAR', true, 30, null);
        $this->addColumn('PERIOD_FROM', 'PeriodFrom', 'VARCHAR', true, 20, null);
        $this->addColumn('PERIOD_TO', 'PeriodTo', 'VARCHAR', true, 20, null);
        $this->addColumn('TEXT', 'Text', 'LONGVARCHAR', false, 2147483647, null);
        $this->addColumn('DECISION', 'Decision', 'LONGVARCHAR', false, 2147483647, null);
        $this->addColumn('MEETING_DATE', 'MeetingDate', 'TIMESTAMP', false, 16, null);
        $this->addColumn('STATUS', 'Status', 'TINYINT', true, 1, 0);
        // validators
    } // initialize()

    /**
     * Build the RelationMap objects for this table relationships
     */
    public function buildRelations()
    {
        $this->addRelation('Committees', 'EmpevalCommittees', RelationMap::ONE_TO_MANY, array('bonus_goals_form_id' => 'bonus_goals_form_id', ), null, null, 'Committeess');
    } // buildRelations()

} // EmpevalViewRejectionsReportTableMap
